package com.student.liu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 收货地址 实体类
 */
@Data
public class UserReceiveraddress implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    @NotNull(message = "请传递省，addprovince")
    private String addprovince;
    @NotNull(message = "请传递市，addcity")
    private String addcity;
    @NotNull(message = "请传递县，addcounty")
    private String addcounty;
    @NotNull(message = "请传递具体地址如门牌号，adddetail")
    private String adddetail;
    private String postcode;
    @NotNull(message = "请传递收件人，recipients")
    private String recipients;
    @NotNull(message = "请传递手机号，mobile")
    private String mobile;

}
